import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import toast from './components/common/toast'
import messageBox from './components/common/messageBox'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import './assets/icons/iconfont.css'

Vue.config.productionTip = false

//安装插件
Vue.use(ElementUI)
Vue.use(toast)
Vue.use(messageBox)

// 事件总线$bus
Vue.prototype.$bus = new Vue()

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')

